﻿#ifndef TCPSOCKET_H
#define TCPSOCKET_H
#include <QTcpSocket>
#include <iostream>
#include <string>
using namespace std;

class tcpsocket : public QTcpSocket
{
    Q_OBJECT
public:
    explicit tcpsocket(QObject *parent = nullptr);

protected slots:
    void recvdata();  //处理readyRead信号读取数据

signals:
    void updateserver(QString, int);  //用来告诉tcpserver需要更新界面

public slots:

private:
    size_t strSize;
};

#endif // TCPSOCKET_H
